import request from '@/utils/request'

// 查询保本账户列表
export function listTKeepOrderAccount(query) {
  return request({
    url: '/bussiness/TKeepOrderAccount/list',
    method: 'get',
    params: query
  })
}

// 查询保本账户详细
export function getTKeepOrderAccount(id) {
  return request({
    url: '/bussiness/TKeepOrderAccount/' + id,
    method: 'get'
  })
}

// 新增保本账户
export function addTKeepOrderAccount(data) {
  return request({
    url: '/bussiness/TKeepOrderAccount',
    method: 'post',
    data: data
  })
}

// 修改保本账户
export function updateTKeepOrderAccount(data) {
  return request({
    url: '/bussiness/TKeepOrderAccount',
    method: 'put',
    data: data
  })
}

// 删除保本账户
export function delTKeepOrderAccount(id) {
  return request({
    url: '/bussiness/TKeepOrderAccount/' + id,
    method: 'delete'
  })
}
